<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib  prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
	function dosubmit() {
		if (document.all("name").value == "") {
			alert("用户名不能为空");
			document.all("name").focus();
			return false;
		}
		

		return true;
	}
</script>

</head>
<%
	//获取项目绝对路径 如： http://ip:port/projectName/
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<body>
	<form
		action="<%=request.getContextPath()%>/manage/editSave.action" method="post">
		<div class="title">
			<h1>编辑学生信息</h1>
		</div>
		<!-- frame div 控制正文内容显示 -->
		<!-- struts 2 隐藏域的做法 -->
		<s:hidden name="student._id"  value="%{student._id}"/>
			<table width="96%" border="1" >
				<tr >
					<td colspan="2" align="center"><br>编辑学生信息（注意，带<font
						color="red">*</font>的为必填项）<br></td>
				</tr>
				<tr>
					<td width="30%" align="right">学生名称:<font color="red">*</font></td>
					<td width="70%" align="left"><input
						name="student.name" type="text"
						id="name" size="50" value="<s:property value="student.name" />" ></td>
				</tr>
				<tr>
					<td width="30%" align="right">学生性别:</td>
					<td width="70%" align="left"><input
						name="student.sex" type="text"
						id="sex" size="50" value="<s:property value="student.sex" />"></td>
				</tr>
				<tr>
					<td width="30%" align="right">学生年龄:</td>
					<td width="70%" align="left"><input
						name="student.age" type="text"
						id="age" size="50" value="<s:property value="student.age" />" ></td>
				</tr>
				<tr>
					<td width="30%" align="right">学生地址:</td>
					<td width="70%" align="left"><input
						name="student.address" type="text"
						id="address" size="50" value="<s:property value="student.address" />"></td>
				</tr>
				<tr>
					<td width="30%" align="right">学生电话:</td>
					<td width="70%" align="left"><input
						name="student.number" type="text"
						id="number" size="50" value="<s:property value="student.number" />"></td>
				</tr>
				<tr  >
					<td colspan="2" align="right"><input type="submit"
						value="保  存"   onclick="return dosubmit();"
						title="保存学生信息"></td>
				</tr>

			</table>

		</div>
		<!-- End of frame div  -->
	</form>
</body>
</html>